Пример #1
0
 internal static void RemoveTackObject(TackObject _obj)
 {
     if (ActiveInstance.mTackObjects.Contains(_obj))
     {
         ActiveInstance.mTackObjects.Remove(_obj);
         TackConsole.EngineLog(EngineLogType.Message, string.Format("Removed TackObject with name '{0}' from TackObjectManager", _obj.Name));
     }
 }
Пример #2
0
 internal static bool AddTackObject(TackObject _obj)
 {
     if (ActiveInstance.mTackObjects.Contains(_obj))
     {
         TackConsole.EngineLog(EngineLogType.Error, "Could not add TackObject with name '{0}' and hash '{1}' because TackObjectManager already contains this TackObject");
         return(false);
     }
     else
     {
         ActiveInstance.mTackObjects.Add(_obj);
         return(true);
     }
 }