Ejemplo n.º 1
0
 public ObjectEntry(GOBJ.GOBJEntry entry)
 {
     ObjectID   = entry.ObjectID;
     Unknown1   = entry.Unknown1;
     PositionX  = entry.Position.X;
     PositionY  = entry.Position.Y;
     PositionZ  = entry.Position.Z;
     RotationX  = entry.Rotation.X;
     RotationY  = entry.Rotation.Y;
     RotationZ  = entry.Rotation.Z;
     ScaleX     = entry.Scale.X;
     ScaleY     = entry.Scale.Y;
     ScaleZ     = entry.Scale.Z;
     RouteID    = entry.RouteID;
     Settings1  = entry.Settings1;
     Settings2  = entry.Settings2;
     Settings3  = entry.Settings3;
     Settings4  = entry.Settings4;
     Settings5  = entry.Settings5;
     Settings6  = entry.Settings6;
     Settings7  = entry.Settings7;
     Settings8  = entry.Settings8;
     Visibility = entry.Visibility;
     EnemyRoute = entry.Unknown2;
     Unknown3   = entry.Unknown3;
 }
Ejemplo n.º 2
0
 public GOBJ.GOBJEntry ToGOBJEntry()
 {
     GOBJ.GOBJEntry entry = new GOBJ.GOBJEntry();
     entry.ObjectID   = ObjectID;
     entry.Unknown1   = Unknown1;
     entry.Position   = new Vector3(PositionX, PositionY, PositionZ);
     entry.Rotation   = new Vector3(RotationX, RotationY, RotationZ);
     entry.Scale      = new Vector3(ScaleX, ScaleY, ScaleZ);
     entry.RouteID    = RouteID;
     entry.Settings1  = Settings1;
     entry.Settings2  = Settings2;
     entry.Settings3  = Settings3;
     entry.Settings4  = Settings4;
     entry.Settings5  = Settings5;
     entry.Settings6  = Settings6;
     entry.Settings7  = Settings7;
     entry.Settings8  = Settings8;
     entry.Visibility = Visibility;
     entry.Unknown2   = EnemyRoute;
     entry.Unknown3   = Unknown3;
     return(entry);
 }