Esempio n. 1
0
 // private static Int3 playerPos;
 // private static readonly int RenderDistanceInChunks = 3;
 public static void Instantiate()
 {
     _instance = new World();
     MainLoopable.GetInstance().RegisterLoops(_instance);
     //System.Random r = new System.Random();
     //playerPos = new Int3(0, 21, 0);
 }
 public static void Instantiate()
 {
     _Instance = new World();
     MainLoopable.GetInstance().RegisterLoopes(_Instance);
     System.Random r = new System.Random();
     PlayerPos = new Int3(r.Next(-1000, 1000), 100, r.Next(-1000, 1000));
 }
Esempio n. 3
0
 public static void Instantiate()
 {
     _Instance = new MainLoopable();
     //register
     Logger.Instantiate();
     World.Instantiate();
     //Debug.Log("MainLoopable");
     Block.Air.GetBlockName();
     BlockRegistry.RegisterBlocks();
 }
Esempio n. 4
0
    void Start()
    {
        FileManager.RegisterFiles();

        _Instance = this;

        TextureAtlas._Instance.CreateAtlas();
        MainLoopable.Instantiate();
        main = MainLoopable.GetInstance();
        main.Start();
    }
Esempio n. 5
0
 // Use this for initialization
 void Start()
 {
     /* test stuff
      * object[] o = Serializer.Deseralize_From_File<object[]>("Data/Saves/World/Chunk/Chunk1.chk");
      * Serializer.Serialize_Tofile<object[]>("Data/Saves/World/Chunk/", "Chunk1", ".chk", new object[] {"12","13","14"});
      */
     FileManager.RegisterFile();
     instance = this;
     TextureAtlas._Instance.CreateAtlas();
     MainLoopable.Instantiate();
     main = MainLoopable.GetInstance();
     main.Start();
 }
Esempio n. 6
0
 public static void Instantiate()
 {
     MainLoopable.GetInstance().RegisterLoops(MainLog);
 }