RTSEngine.Data.Team.RTSRace.SetController C# (CSharp) Method

SetController() public method

public SetController ( ReflectedScript>.Dictionary d, string cType, string key ) : void
d ReflectedScript>.Dictionary
cType string
key string
return void
        public void SetController(Dictionary<string, ReflectedScript> d, string cType, string key)
        {
            switch(cType.Trim().ToLower()) {
                case "act":
                case "action":
                    d.TryGetValue(key, out SCAction);
                    break;
                case "move":
                case "movement":
                case "motion":
                    d.TryGetValue(key, out SCMovement);
                    break;
                case "target":
                case "targeting":
                    d.TryGetValue(key, out SCTargeting);
                    break;
            }
        }