예제 #1
0
 /// <summary>
 ///
 /// </summary>
 /// <returns></returns>
 internal KeyValuePair <string, object>[] GetConfiguration()
 {
     return(serviceList
            .Select(svc => new KeyValuePair <string, object>(svc.GetType().Name, GameService.GetConfigObject(svc)))
            .ToArray());
 }
예제 #2
0
        /// <summary>
        /// Gets service by name.
        /// </summary>
        /// <param name="name"></param>
        /// <returns></returns>
        internal object GetConfigObjectByServiceName(string name)
        {
            var svc = GetServiceByName(name);

            return(GameService.GetConfigObject(svc));
        }