-
-
Notifications
You must be signed in to change notification settings - Fork 481
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add an AgentRegistry #42
Comments
I'd like to try and implement this in C++ instead of lua. Public member functions would be |
Implementing the agent registry in C++ would also enable us to add checks into other agent related systems (both C++ and Lua) to assure that an agent id has been registered before use. So I'm not opposed to the idea. However, I don't think it needs to be a System. After all, what would the update() method do? |
Ah yes, i see what you mean. Perhaps just a very static AgentRegistry class then |
Guess this just needs to be closed? |
Do it yourself! (See PM in forum). |
To facilitate the management of agent types in the microbe stage, we need a central registry for storing information about agents. The information required (or useful) per agent is currently limited to
id
: A unique integer id, generated withgenerateAgentId
and possibly different per game instancename
: A unique string for identifying the agent across game instances. Should be in English and expressive, but short.displayName
: A string that can be displayed to the user, may be localized some time in the future.The list of properties might grow in the future, so the AgentRegistry should account for that. Users, i.e. script authors, must be able to easily register new agents as well as query information about already registered ones.
The simplest implementation can just be a table like this:
Plus a simple API function
registerAgentType(name, displayName)
that generates an agentId and inserts the necessary information into the above table.The text was updated successfully, but these errors were encountered: