Exemplo n.º 1
0
 /// <summary>
 /// Virtual method to return a buildings blueprint id
 /// </summary>
 /// <returns></returns>
 public virtual int GetSpriteBlueprintID()
 {
     return(local_sprite_blueprint + IngameObjectLibrary.GetOffset(CATEGORY));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Gets the unique global sprite id of this object.
 /// </summary>
 /// <returns>Sprite ID to be used with the IngameObjectLibrary</returns>
 public int GetSpriteID()
 {
     return(LocalSpriteID + IngameObjectLibrary.GetOffset(SpriteCategory));
 }
Exemplo n.º 3
0
 public int GetPortraitID()
 {
     return(portraitID + IngameObjectLibrary.GetOffset(SPRITEPORTRAITCATEGORY));
 }
Exemplo n.º 4
0
 /// <summary>
 /// Gets a random spriteID out of the available sprites.
 /// </summary>
 /// <returns>Valid Sprite ID</returns>
 public new int GetSpriteID()
 {
     return(localIDs[UnityEngine.Random.Range(0, localIDs.Length - 1)] + IngameObjectLibrary.GetOffset(category));
 }
Exemplo n.º 5
0
 public int GetSpriteID()
 {
     return(LocalSpriteID + IngameObjectLibrary.GetOffset(SPRITECATEGORY));
 }