Exemplo n.º 1
0
 public void Update(EndianStream stream)
 {
     stream.SeekTo(Offset);
     stream.WriteInt32(Ident);
     stream.WriteByte(RunTimeMinimium);
     stream.WriteByte(RunTimeMaximium);
     stream.WriteByte(CountOnMap);
     stream.WriteByte(DesignTimeMaximium);
     stream.WriteFloat(Cost);
 }
Exemplo n.º 2
0
            public void Update(EndianStream stream)
            {
                stream.SeekTo(Offset + 0x0C);
                stream.WriteInt32(TagIndex);

                stream.WriteFloat(SpawnCoordinates.X);
                stream.WriteFloat(SpawnCoordinates.Y);
                stream.WriteFloat(SpawnCoordinates.Z);
                stream.WriteFloat(SpawnPosition.Right.X);
                stream.WriteFloat(SpawnPosition.Right.Y);
                stream.WriteFloat(SpawnPosition.Right.Z);
                stream.WriteFloat(SpawnPosition.Up.X);
                stream.WriteFloat(SpawnPosition.Up.Y);
                stream.WriteFloat(SpawnPosition.Up.Z);

                stream.SeekTo(stream.Position + 0x0B);
                stream.WriteByte(Team);

                stream.SeekTo(stream.Position + 0x01);
                stream.WriteByte(RespawnTime);

                stream.SeekTo(stream.Position + 0x12);
            }