Example #1
0
        public static Topic Response(this MudObject To, String Topic, Func<MudObject, MudObject, MudObject, PerformResult> FuncResponse)
        {
            var topics = To.GetProperty<List<MudObject>>("conversation-topics");
            if (topics == null)
            {
                topics = new List<MudObject>();
                To.SetProperty("conversation-topics", topics);
            }

            var response = new Topic();
            topics.Add(response);
            response.SimpleName(Topic);
            response.Perform<MudObject, MudObject, MudObject>("topic response").Do(FuncResponse);
            return response;
        }
Example #2
0
 public Topic Follows(Topic Previous)
 {
     return this.Available(() => Previous.Discussed, "B follows A topic ordering rule");
 }