Ejemplo n.º 1
0
 public override void Execute(GameStateData state)
 {
     if (_isSucceed = state.users[_userID].inventory.ownedItemIDs.Remove(_itemID))
     {
         state.users[_userID].inventory.equiedItemIDs.Add(_itemID);
     }
 }
Ejemplo n.º 2
0
        public override void Execute(GameStateData state)
        {
            var user = new GameUserData();

            user.avatarID.SetValue(_avatarID);
            user.displayName.SetValue(_displayName);
            user.roleID.SetValue(_roleID);

            user.state.health.SetValue(100.0f);
            user.state.maxHealth.SetValue(100.0f);

            user.state.hungry.SetValue(100.0f);
            user.state.maxHungry.SetValue(100.0f);

            user.state.thirst.SetValue(100.0f);
            user.state.maxThirst.SetValue(100.0f);

            user.state.temperature.SetValue(96.8f);

            state.users.Add(_networkID, user);
        }
Ejemplo n.º 3
0
 public override void Execute(GameStateData state)
 {
     state.users[_userID].inventory.ownedItemIDs.Add(_itemID);
 }