Esempio n. 1
0
        internal CastleBehavior(GameObject gameObject, GameContext context, CastleBehaviorModuleData moduleData)
        {
            _moduleData = moduleData;
            _gameObject = gameObject;
            _context    = context;

            _nativePlayer = _gameObject.Owner;
        }
Esempio n. 2
0
 internal CastleBehavior(GameObject gameObject, GameContext context, CastleBehaviorModuleData moduleData)
 {
     IsUnpacked      = false;
     _moduleData     = moduleData;
     _gameObject     = gameObject;
     _context        = context;
     _updateInterval = 500;
     _nativePlayer   = _gameObject.Owner;
 }
Esempio n. 3
0
 internal CastleBehavior(GameObject gameObject, GameContext context, CastleBehaviorModuleData moduleData)
 {
     IsUnpacked      = false;
     _moduleData     = moduleData;
     _gameObject     = gameObject;
     _context        = context;
     _updateInterval = new LogicFrameSpan((uint)MathF.Ceiling(Game.LogicFramesPerSecond / 2)); // 0.5s
     _nativePlayer   = _gameObject.Owner;
 }
Esempio n. 4
0
 internal CastleBehaviorModule(GameObject gameObject, GameContext context, CastleBehaviorModuleData moduleData)
 {
     _moduleData = moduleData;
     _gameObject = gameObject;
 }