コード例 #1
0
 public InteractHandler(
     ActorModel model,
     ActorSettings settings)
 {
     _model    = model;
     _settings = settings;
 }
コード例 #2
0
 protected ActorState(Actor owner)
 {
     Name     = GetType().Name;
     Owner    = owner;
     Model    = owner.Model;
     Settings = Owner.Settings;
 }
コード例 #3
0
 public PushHandler(
     ActorModel model,
     ActorSettings settings)
 {
     _model    = model;
     _settings = settings;
 }
コード例 #4
0
 public void Init(ILog log, ActorRepository repo, ActorSettings settings, AreaHolder areas)
 {
     _logger  = log.CreateLogger(this);
     _repo    = repo;
     Settings = settings;
     Areas    = areas;
 }
コード例 #5
0
 public MoveHandler(
     ActorSettings settings,
     ActorModel model)
 {
     _settings = settings;
     _model    = model;
 }
コード例 #6
0
ファイル: BaseAI.cs プロジェクト: xenrik/blocks
    // Use this for initialization
    protected void initialise()
    {
        settings = gameObject.GetComponent <ActorSettings>();
        if (settings == null)
        {
            throw new MissingReferenceException("Missing ActorSettings");
        }

        rigidBody = gameObject.GetComponent <Rigidbody>();
    }
コード例 #7
0
        public void SetUp()
        {
            _board            = Resources.Load <Board>("TestActor/TestBoard");
            _actorSettings    = Resources.Load <ActorSettings>("TestActor/TestActorSettings");
            _actorStatuses    = new TestActorStatuses();
            _actorBrain       = Resources.Load <ActorBrainSpy>("TestActor/TestActorBrainSpy");
            _blockerSettings  = Resources.Load <ActorSettings>("TestActor/TestBlockerSettings");
            _pushableSettings = Resources.Load <ActorSettings>("TestActor/TestPushableSettings");

            var levelState = Resources.Load <LevelState>("TestActor/TestLevelState");

            levelState.Initialise(new ObservableStateBroker());
            levelState.GameplayState.Value = LevelState.GameplayStates.Playing;
        }
コード例 #8
0
ファイル: EntitiesController.cs プロジェクト: gliljas/sfcat
 private void fillSwitches(Dictionary <string, string> switches, ActorSettings settings)
 {
     if (!switches.ContainsKey("EntityServiceType"))
     {
         switches.Add("EntityServiceType", settings.EntityServiceType);
     }
     else
     {
         switches["EntityServiceType"] = settings.EntityServiceType;
     }
     if (!switches.ContainsKey("HandlerAssembly"))
     {
         switches.Add("HandlerAssembly", settings.HandlerAssembly);
     }
     else
     {
         switches["HandlerAssembly"] = settings.HandlerAssembly;
     }
     if (!switches.ContainsKey("HandlerType"))
     {
         switches.Add("HandlerType", settings.HandlerType);
     }
     else
     {
         switches["HandlerType"] = settings.HandlerType;
     }
     if (!switches.ContainsKey("SerializedProperties"))
     {
         switches.Add("SerializedProperties", settings.SerializedProperties);
     }
     else
     {
         switches["SerializedProperties"] = settings.SerializedProperties;
     }
     if (!switches.ContainsKey("CSEndpoint"))
     {
         switches.Add("CSEndpoint", "http://localhost:8088");
     }
 }