コード例 #1
0
ファイル: User.cs プロジェクト: yonglehou/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);
        }
コード例 #2
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);
        }