Ejemplo n.º 1
0
 public TreeObjectInstance(Vector3 Position, Vector3 Rotation, Vector3 Scale, int type)
 {
     this.Position       = new Vector3Ser(Position);
     this.Rotation       = new Vector3Ser(Rotation);
     this.Scale          = new Vector3Ser(Scale);
     this.prototypeIndex = type;
 }
Ejemplo n.º 2
0
    // Falta obtener el level
    public PlayerData(PlayerStats ps)
    {
        health   = ps.health;
        lifes    = ps.lifes;
        calories = ps.calories;

        position = new Vector3Ser(ps.transform.position);
    }
Ejemplo n.º 3
0
 public PlayerData(bool newPlayer, string profileID, DateTime dateCreated, string versionCreated, float secondsPlayed, float secondsSinceLastDeath, float health, float foodLevel, float foodSaturationLevel, float foodExhaustionLevel, float sleepLevel, float sleepTickTimer, bool isCreative, float exp, Vector3Ser originalSpawnLocation, Vector3Ser currentSpawnLocation, bool useOriginalSpawnLocation, Vector3Ser currentLocation, bool isDead, List <InventorySlot> inventorySlots, List <Vector3IntSer> previousDeaths)
 {
     this.newPlayer             = newPlayer;
     this.profileID             = profileID;
     this.dateCreated           = dateCreated;
     this.versionCreated        = versionCreated;
     this.secondsPlayed         = secondsPlayed;
     this.secondsSinceLastDeath = secondsSinceLastDeath;
     this.health              = health;
     this.foodLevel           = foodLevel;
     this.foodSaturationLevel = foodSaturationLevel;
     this.foodExhaustionLevel = foodExhaustionLevel;
     this.sleepLevel          = sleepLevel;
     this.sleepTickTimer      = sleepTickTimer;
     this.exp                      = exp;
     this.isCreative               = isCreative;
     this.originalSpawnLocation    = originalSpawnLocation;
     this.currentSpawnLocation     = currentSpawnLocation;
     this.useOriginalSpawnLocation = useOriginalSpawnLocation;
     this.currentLocation          = currentLocation;
     this.isDead                   = isDead;
     this.inventorySlot            = inventorySlots;
     this.previousDeaths           = previousDeaths;
 }
Ejemplo n.º 4
0
 public void setNpcPosition(Vector3 position)
 {
     npcPosition = new Vector3Ser(position);
 }
Ejemplo n.º 5
0
 public void setPlayerPosition(Vector3 position)
 {
     playerPosition = new Vector3Ser(position);
 }