internal void Load(EndianBinaryReader input) { Position = new Vector3( input.ReadSingle(), input.ReadSingle(), input.ReadSingle()); int bananaTypeInt = input.ReadInt32(); if (!Enum.IsDefined(typeof(BananaType), bananaTypeInt)) { throw new InvalidStageLayoutFileException("Unknown StageLayoutBanana[0x0C]."); } Type = (BananaType)bananaTypeInt; }
public StageLayoutBanana() { Position = Vector3.Zero; Type = BananaType.Single; }