Esempio n. 1
0
 public void renderWorld()
 {
     while (objectsToRender.Count > 0)
     {
         RuneObject rune = null;
         if (objectsToRender.Count > 0)
         {
             rune = objectsToRender [0];
         }
         if (rune != null)
         {
             rune.RenderMesh();
         }
         if (objectsToRender.Count > 0)
         {
             objectsToRender.RemoveAt(0);
         }
     }
     while (objectsToDispose.Count > 0)
     {
         GameObject rune = null;
         if (objectsToDispose.Count > 0)
         {
             rune = objectsToDispose [0];
         }
         if (rune != null)
         {
             UnityClient.DisposeRuneObject(rune);
         }
         if (objectsToDispose.Count > 0)
         {
             objectsToDispose.RemoveAt(0);
         }
     }
 }
Esempio n. 2
0
 public Player() : base()
 {
     aLong1697      = -1L;
     aBoolean1699   = false;
     anIntArray1700 = new int[5];
     visible        = false;
     anInt1715      = 9;
     equipment      = new int[12];
     playerObj      = new RuneObject(this);
 }
Esempio n. 3
0
        public virtual void renderAtPoint(int i, int j, int k, int l, int i1, int xOffset, int j1, int yOffset, int k1, int zOffset,
                                          int l1, int i2, RuneObject runeObj)
        {
            Debug.Log("renderAtPoint");
            Model model = getRotatedModel();

            if (model != null)
            {
                modelHeight = model.modelHeight;
                if (this is Player)
                {
                    model.renderAtPoint(i, j, k, l, i1, xOffset, j1, yOffset, k1, zOffset, l1, i2, (this as Player).playerObj);
                }
                else if (this is NPC)
                {
                    model.renderAtPoint(i, j, k, l, i1, xOffset, j1, yOffset, k1, zOffset, l1, i2, (this as NPC).npcObj);
                }
                else
                {
                    model.renderAtPoint(i, j, k, l, i1, xOffset, j1, yOffset, k1, zOffset, l1, i2, runeObj);
                }
            }
        }
Esempio n. 4
0
 public NPC()
 {
     npcObj = new RuneObject(this);
 }
Esempio n. 5
0
        public void render(int x, int y, int orientation, int j, int k, int l, int i1, int height, int key, RuneObject runeObj)
        {
            Model model = null;

            if (this is Animable_Sub5)
            {
                model = (this as Animable_Sub5).getRotatedModel();
            }
            else if (this is Model)
            {
                model = this as Model;
            }
            if (model != null)
            {
                modelHeight = model.modelHeight;
                if (this is Player)
                {
                    model.renderAtPoint(orientation, j, k, l, i1, x, height, y, key, (this as Player).playerObj);
                }
                else if (this is NPC)
                {
                    model.renderAtPoint(orientation, j, k, l, i1, x, height, y, key, (this as NPC).npcObj);
                }
                else
                {
                    model.renderAtPoint(orientation, j, k, l, i1, x, height, y, key, runeObj);
                }
            }
            else
            {
            }
        }