Will be following and hopefully contributing at some point.
|
Good luck seems very interesting will follow!!
Will be following and hopefully contributing at some point.
Code:/// <summary> /// The x coordinate /// </summary> private int posX; /// <summary> /// The y coordinate /// </summary> private int posY; /// <summary> /// The height coordinate /// </summary> private int height;whatCode:/// <summary> /// All getters and setters /// </summary> #region Getters + Setters public int PosX { get { return posX; } set { posX = value; } } public int PosY { get { return posY; } set { posY = value; } } public int Height { get { return height; } set { height = value; } } #endregion
learn the language benefits c# offers over java before attempting this
I'll follow up may contribute if i have some time.
No need for separate getters/setters
http://stackoverflow.com/questions/1...aration-in-net
Really interested in this frame work once you got login/packets etc working.
C# isn't Java, methods are "NamedLikeThis" and local variables are "namedLikeThis" while private fields are "_namedLikeThis".
And public properties, static or otherwise are like
File structure should also be similar.Code:public static int Money { get; set; }
https://github.com/Ulterius/server/t...PacketHandlers
Also avoid using callbacks based on EventHandler (unless its just to control where something should go), target the latest .NET and take advantage of async/await.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |