about item id problem

Options
oman
oman
edited June 2012 in Photon Server
the item's id type is string, but I want to use int type, my way is I generate int id and convert it to string when create item or call TryGetItem method, except this, is there any other way to use int id for item?

Comments

  • Tobias
    Options
    Most likely no.
    You could refactor the server and client code to use int instead of string there. That's not a simple switch but possible.
    If it's really simpler for you, do the extra effort! The MMO application and client are just skeletons and by no means complete or flexible enough for every usecase possible.
  • duke
    Options
    In fact the source code to those projects, together with Reflector to browse the other things makes for some damn good documentation!