public static void ReadCreate(PacketReader stream) { ModelInstance instance = ScriptManager.Interface.CreateModelInstance(); instance.ReadStream(stream); instance.ScriptObject.Create(); }
public static void ReadDelete(PacketReader stream) { ModelInstance instance; if (ModelInstance.TryGet(stream.ReadUShort(), out instance)) { instance.ScriptObject.Delete(); } }
/// <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)); }