예제 #1
0
            public static void ReadCreate(PacketReader stream)
            {
                ModelInstance instance = ScriptManager.Interface.CreateModelInstance();

                instance.ReadStream(stream);
                instance.ScriptObject.Create();
            }
예제 #2
0
            public static void ReadDelete(PacketReader stream)
            {
                ModelInstance instance;

                if (ModelInstance.TryGet(stream.ReadUShort(), out instance))
                {
                    instance.ScriptObject.Delete();
                }
            }
예제 #3
0
 /// <summary> Gets a Model by ID from the static Model collection. </summary>
 public static bool TryGet(int id, out ModelInstance model)
 {
     return(idColl.TryGet(id, out model));
 }