Thread: Ares - C# Framework

Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 31
  1. #11  
    Banned

    Join Date
    Jan 2011
    Posts
    1,904
    Thanks given
    367
    Thanks received
    330
    Rep Power
    0
    Good luck seems very interesting will follow!!
     

  2. #12  
    Registered Member

    Join Date
    Sep 2016
    Posts
    384
    Thanks given
    1
    Thanks received
    117
    Rep Power
    311
    Will be following and hopefully contributing at some point.
     

  3. #13  
    Registered Member

    Join Date
    Dec 2015
    Posts
    166
    Thanks given
    77
    Thanks received
    87
    Rep Power
    404
    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;
    Code:
    /// <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
    what

    learn the language benefits c# offers over java before attempting this
    "It's all a matter of perspective. There is no single path in life that is right and fair and does no harm."
     

  4. #14  
    lol k


    Join Date
    Mar 2016
    Posts
    301
    Thanks given
    114
    Thanks received
    143
    Rep Power
    414
    I'll follow up may contribute if i have some time.
     

  5. #15  
    Registered Member
    Optimum's Avatar
    Join Date
    Apr 2012
    Posts
    3,570
    Thanks given
    871
    Thanks received
    1,745
    Rep Power
    5000
    Quote Originally Posted by Whis View Post
    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;
    Code:
    /// <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
    what

    learn the language benefits c# offers over java before attempting this
    Don't just comment "learn the benefits" with no plausible explanation man. You showed me encapsulated fields..... what about them?

    Quote Originally Posted by DownGrade View Post
    Don't let these no life creeps get to you, its always the same on here. They'd rather spend hours upon hours in the rune-server spam section then getting laid! ha ha!Its honestly pathetic i haven't seen so many lowlifes in my life its actually insane i wish that this section would just vanish its probably the only way to get these people out of the community...
    PLEASE BE AWARE OF IMPOSTERS MY DISCORD ID: 362240000760348683
     

  6. #16  
    Registered Member

    Join Date
    Dec 2015
    Posts
    166
    Thanks given
    77
    Thanks received
    87
    Rep Power
    404
    Quote Originally Posted by Optimum View Post
    Don't just comment "learn the benefits" with no plausible explanation man. You showed me encapsulated fields..... what about them?
    No need for separate getters/setters

    http://stackoverflow.com/questions/1...aration-in-net
    "It's all a matter of perspective. There is no single path in life that is right and fair and does no harm."
     

  7. #17  
    Registered Member
    Optimum's Avatar
    Join Date
    Apr 2012
    Posts
    3,570
    Thanks given
    871
    Thanks received
    1,745
    Rep Power
    5000
    Quote Originally Posted by Whis View Post
    No need for separate getters/setters

    http://stackoverflow.com/questions/1...aration-in-net
    At the end of the day that's all down to personal preference. I very well know you don't need a private variable and a getter + Setters for that variable. I've done C# for 4 years.

    Quote Originally Posted by DownGrade View Post
    Don't let these no life creeps get to you, its always the same on here. They'd rather spend hours upon hours in the rune-server spam section then getting laid! ha ha!Its honestly pathetic i haven't seen so many lowlifes in my life its actually insane i wish that this section would just vanish its probably the only way to get these people out of the community...
    PLEASE BE AWARE OF IMPOSTERS MY DISCORD ID: 362240000760348683
     

  8. #18  
    Registered Member

    Join Date
    Dec 2015
    Posts
    166
    Thanks given
    77
    Thanks received
    87
    Rep Power
    404
    Quote Originally Posted by Optimum View Post
    At the end of the day that's all down to personal preference. I very well know you don't need a private variable and a getter + Setters for that variable. I've done C# for 4 years.
    if writing 10 extra lines of code helps you sleep at night then sure go for that lol
    "It's all a matter of perspective. There is no single path in life that is right and fair and does no harm."
     

  9. #19  
    Donator


    Join Date
    Jan 2010
    Age
    29
    Posts
    4,122
    Thanks given
    274
    Thanks received
    551
    Rep Power
    738
    Really interested in this frame work once you got login/packets etc working.
     

  10. #20  
    The internet's reject
    Andy's Avatar
    Join Date
    Jun 2007
    Age
    33
    Posts
    4,371
    Thanks given
    148
    Thanks received
    1,522
    Rep Power
    3133
    Attached image

    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
    Code:
     public static int Money { get; set; }
    File structure should also be similar.

    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.
    What am I watching now?

     


Page 2 of 4 FirstFirst 1234 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Are YOU a Player Mod for RuneScape?
    By ιаυяа in forum Voting
    Replies: 156
    Last Post: 06-23-2008, 11:03 PM
  2. Where are you from?
    By Jukk in forum Voting
    Replies: 16
    Last Post: 01-20-2008, 03:07 AM
  3. Replies: 67
    Last Post: 12-02-2007, 05:50 AM
  4. PK Isle Haters, here you are.
    By Inside Sin in forum Showcase
    Replies: 13
    Last Post: 08-19-2007, 07:26 PM
  5. Wireframes are the hotness <3
    By Beh3moth2 in forum Showcase
    Replies: 11
    Last Post: 06-12-2007, 11:05 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •