Ejemplo n.º 1
0
 void SetDataOther(Electrotank.Electroserver5.Api.EsObject obj)
 {
     if (obj.variableExists("isMaster"))
     {
         isMaster = obj.getBoolean("isMaster");
     }
     if (obj.variableExists("slotIndex"))
     {
         slotServer = obj.getInteger("slotIndex");
     }
     if (obj.variableExists("playerState"))
     {
         PlayerState = ConvertPlayerState(obj.getString("playerState"));
     }
     if (obj.variableExists("handSize"))
     {
         handSize = obj.getInteger("handSize");
     }
     if (obj.variableExists("isRobot"))
     {
         isRobot = obj.getBoolean("isRobot");
     }
     if (obj.variableExists("priority"))
     {
         isPriority = obj.getBoolean("priority");
     }
 }
Ejemplo n.º 2
0
    public void Reset()
    {
        DestroyObject();

        PlayerState = EPlayerController.EPlayerState.waiting;
    }