Beispiel #1
0
        protected LevelArea(byte AreaID, byte LevelID, bool AddWarps, bool AddObjects)
        {
            Geolayout   = new Geolayout.Geolayout(SM64Lib.Geolayout.Geolayout.NewScriptCreationMode.Level);
            this.AreaID = AreaID;
            {
                var withBlock = Levelscript;
                withBlock.Add(new LevelscriptCommand(new byte[] { 0x1F, 0x8, AreaID, 0x0, 0x0, 0x0, 0x0, 0x0 }));
                withBlock.Add(new LevelscriptCommand(new byte[] { 0x2E, 0x8, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 }));
                withBlock.Add(new LevelscriptCommand(new byte[] { 0x36, 0x8, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 }));
                withBlock.Add(new LevelscriptCommand(new byte[] { 0x31, 0x4, 0x0, 0x2 }));
                withBlock.Add(new LevelscriptCommand(new byte[] { 0x20, 0x4, 0x0, 0x0 }));
            }

            if (AddWarps)
            {
                Objects.Add(new LevelscriptCommand(new byte[] { 0x24, 0x18, 0x1F, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xA, 0x0, 0x0, 0x13, 0x0, 0x2F, 0x74 }));
                Warps.Add(new LevelscriptCommand(new byte[] { 0x26, 0x8, 0xA, LevelID, AreaID, 0x0, 0x0, 0x0 }));
                WarpsForGame.Add(new LevelscriptCommand(new byte[] { 0x26, 0x8, 0xF0, 0x6, 0x1, 0x32, 0x0, 0x0 }));
                WarpsForGame.Add(new LevelscriptCommand(new byte[] { 0x26, 0x8, 0xF1, 0x6, 0x1, 0x64, 0x0, 0x0 }));
            }

            if (AddObjects)
            {
                for (int i = 1; i <= 15; i++)
                {
                    var newObj = new LevelscriptCommand(DefaultNormal3DObject);
                    Objects.Add(newObj);
                }
            }
        }
Beispiel #2
0
 public void GenerateNewGeolayout()
 {
     Geolayout = new Geolayout.Geolayout(SM64Lib.Geolayout.Geolayout.NewScriptCreationMode.Object);
 }
Beispiel #3
0
 public CustomModel(Geolayout.Geolayout geo, Model.ObjectModel mdl)
 {
     Geolayout = geo;
     Model     = mdl;
 }
Beispiel #4
0
 public CustomModel(Geolayout.Geolayout geo)
 {
     Geolayout = geo;
 }
Beispiel #5
0
 protected LevelArea()
 {
     Geolayout = new Geolayout.Geolayout(SM64Lib.Geolayout.Geolayout.NewScriptCreationMode.Level);
 }