Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace TinkerWorX.Legeria
- {
- /// <summary>
- /// This is base tiles, they are where the magic is, they have various effects, and supply a lot of base material for construction.
- /// </summary>
- public sealed partial class TileBaseType
- {
- public static TileBaseType[] Types;
- public TileBaseType(Byte id, String name, String assetName)
- {
- this.Id = id;
- this.Name = name;
- this.AssetName = assetName;
- if (TileBaseType.Types == null)
- TileBaseType.Types = new TileBaseType[Byte.MaxValue + 1];
- TileBaseType.Types[id] = this;
- }
- public Byte Id;
- public String Name;
- public String AssetName;
- public Texture2D Texture = null;
- public Boolean IsRendered = true;
- public TileUpdate Update = null;
- public Boolean BlocksAmbientLight = true;
- public Boolean EmitsLight = false;
- public Boolean IsSolid = true;
- public Int32 Health = 10;
- public Int32 Hardness = 2;
- public Single Friction = 16.00f;
- public Single Elasticity = 0.00f;
- public Single Reflection = 0.00f;
- }
- public sealed partial class TileBaseType
- {
- /// <summary>
- /// Void type is used for invalid tiles.
- /// </summary>
- public static readonly TileBaseType Void = new TileBaseType(0, String.Empty, String.Empty)
- {
- IsRendered = false,
- Hardness = Int32.MaxValue
- };
- }
- public sealed partial class TileBaseType
- {
- /// <summary>
- /// This is free air.
- /// </summary>
- public static readonly TileBaseType None = new TileBaseType(1, "Air", String.Empty)
- {
- IsRendered = false,
- BlocksAmbientLight = false,
- IsSolid = false
- };
- }
- public sealed partial class TileBaseType
- {
- /// <summary>
- /// This is basic dirt.
- /// </summary>
- public static readonly TileBaseType Dirt = new TileBaseType(2, "Dirt", @"Tiles\Base\Dirt");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment