public InteractHandler( ActorModel model, ActorSettings settings) { _model = model; _settings = settings; }
protected ActorState(Actor owner) { Name = GetType().Name; Owner = owner; Model = owner.Model; Settings = Owner.Settings; }
public PushHandler( ActorModel model, ActorSettings settings) { _model = model; _settings = settings; }
public void Init(ILog log, ActorRepository repo, ActorSettings settings, AreaHolder areas) { _logger = log.CreateLogger(this); _repo = repo; Settings = settings; Areas = areas; }
public MoveHandler( ActorSettings settings, ActorModel model) { _settings = settings; _model = model; }
// Use this for initialization protected void initialise() { settings = gameObject.GetComponent <ActorSettings>(); if (settings == null) { throw new MissingReferenceException("Missing ActorSettings"); } rigidBody = gameObject.GetComponent <Rigidbody>(); }
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; }
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"); } }