Exemple #1
0
 public TmxTile(uint globalId, uint localId, string tilesetName, TmxImage tmxImage)
 {
     this.GlobalId    = globalId;
     this.LocalId     = localId;
     this.TmxImage    = tmxImage;
     this.Properties  = new TmxProperties();
     this.ObjectGroup = new TmxObjectGroup();
     this.Animation   = TmxAnimation.FromTileId(globalId);
     this.Meshes      = new List <TmxMesh>();
 }
Exemple #2
0
 public TmxTile(TmxMap tmxMap, uint globalId, uint localId, string tilesetName, TmxImage tmxImage)
 {
     TmxMap      = TmxMap;
     GlobalId    = globalId;
     LocalId     = localId;
     TmxImage    = tmxImage;
     Properties  = new TmxProperties();
     ObjectGroup = new TmxObjectGroup(null, TmxMap);
     Animation   = TmxAnimation.FromTileId(globalId);
     Meshes      = new List <TmxMesh>();
 }