Skip to content

Cocos2d-x helping tool to work with strings files.

Notifications You must be signed in to change notification settings

imbrn/cocos-strings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cocos Strings

Cocos2d-x helping tool to work with strings files.

This tool was developed to provide an easy way to read strings from a file.

How to use

  • Add cocos2d/external to include directories.

  • Add the project files to your include directories and path.

  • Create json:

{
    "name": "My name",
    "other_key": "Other key value",
    "many_strings": ["string one", "string two", "string three"]
}
  • In your code:
    auto my_strings = strings::Strings::fromJsonFile("strings.json");

    // Ready single string
    auto name = my_strings.get_string("name");

    // Ready many strings
    auto many_strings = my_strings.get_strings("many_strings");
}

Dependencies

About

Cocos2d-x helping tool to work with strings files.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages