예제 #1
0
        // Heittää poikkeuksen kun olion luominen epäonnistuu.
        private void ThrowFailedToResolve(MapObjectArguments parameter)
        {
            string namespaces = "";

            Array.ForEach(objectNamespaces, s => namespaces += s);

            throw new Exception("Map object type could not be resolved, object data is " + parameter.SerializedData.ToString() + Environment.NewLine +
                                "Namespaces are " + Environment.NewLine + namespaces);
        }
예제 #2
0
 // Luo aktivaattorilla uuden instanssin halutusta oliosta.
 private GameObject CreateObject(KhvGame game, Type type, MapObjectArguments data)
 {
     return((GameObject)Activator.CreateInstance(type, game, data));
 }