fCraft.World.AddTask C# (CSharp) Метод

AddTask() приватный Метод

private AddTask ( TaskCategory cat, PhysicsTask task, int Delay ) : void
cat TaskCategory
task PhysicsTask
Delay int
Результат void
        internal void AddTask( TaskCategory cat, PhysicsTask task, int Delay )
        {
            try {
                _physSchedulers[( int )cat].AddTask( task, Delay );
            } catch ( Exception e ) {
                Logger.Log( LogType.Error, "PhySchedAddTask: " + e );
            }
        }

Usage Example

Пример #1
0
        public void Resume() //the map with this life was just loaded from the file
        {
            lock ( _life2d ) {
                if (Stopped)
                {
                    return;
                }
            }
            World w = _map.World;

            if (null == w)
            {
                Logger.Log(LogType.Error, "Life: cant resume life in a map without a world");
                return;
            }
            w.AddTask(TaskCategory.Life, new Task(w, this), 0);
        }
All Usage Examples Of fCraft.World::AddTask