Ejemplo n.º 1
0
 public PlacedMapEntity Generate(MapEntityType type, Vector3 position, int LODScale)
 {
     switch (type)
     {
     case MapEntityType.ground:
         return(new PMEGround(position, LODScale));
     }
     return(null);
 }
Ejemplo n.º 2
0
 public MapEntity(ObjectContainer map, object msbo, MapEntityType type)
 {
     Container     = map;
     WrappedObject = msbo;
     Type          = type;
     if (!(msbo is PARAM.Row) && !(msbo is MergedParamRow))
     {
         CurrentModel = GetPropertyValue <string>("ModelName");
     }
 }
Ejemplo n.º 3
0
 public PlacedMapEntity(MapEntityType type, Vector3 position, float LODScale)
 {
     this.position = position;
     this.type     = type;
     this.LODScale = LODScale;
 }