예제 #1
0
 public void Remove()
 {
     this.world.RemoveUser(this);
     this.world.RemoveObject(this.character);
     this.world  = null;
     this.states = null;
     this.input  = null;
 }
예제 #2
0
        public User(string name, GameWorld world)
        {
            this.id        = ++counter;
            this.world     = world;
            this.states    = new StateCollection();
            this.input     = new ConcurrentQueue <UserInput>();
            this.character = new Character(this);
            this.world.AddObject(this.character);
            this.score = new DInt(20);

            this.name    = new DString(name);
            this.latency = new DShort(-1);
        }
예제 #3
0
파일: User.cs 프로젝트: Maksims/gh12-server
        public User(string name, GameWorld world)
        {
            this.id = ++counter;
            this.world = world;
            this.states = new StateCollection();
            this.input = new ConcurrentQueue<UserInput>();
            this.character = new Character(this);
            this.world.AddObject(this.character);
            this.score = new DInt(20);

            this.name = new DString(name);
            this.latency = new DShort(-1);
        }
예제 #4
0
파일: User.cs 프로젝트: Maksims/gh12-server
 public void Remove()
 {
     this.world.RemoveUser(this);
     this.world.RemoveObject(this.character);
     this.world = null;
     this.states = null;
     this.input = null;
 }