public static SpiderView ConvertSpiderToView(SpiderModel result) { var spiderView = new SpiderView { Id = result.Id, NamePl = result.NamePl, NameEng = result.NameEng, Size = result.Size, Type = result.Type, TemperatureMin = result.TemperatureMin, TemperatureMax = result.TemperatureMax, HumidityMin = result.HumidityMin, HumidityMax = result.HumidityMax, OriginPlace = result.OriginPlace, PowerOfVenom = result.PowerOfVenom, Aggressiveness = result.Aggressiveness, Speed = result.Speed, LengthOfLife = result.LengthOfLife, CocoonSize = result.CocoonSize, Description = result.Description, Experience = result.Experience, ShortDescription = result.ShortDescription }; return(spiderView); }
public LuaMako(SpiderView host) { this.host = host; // Initialize runtime engine. For now we use JavaScriptEngine RuntimeMachine = host.Scripting; // Set JSPython to try as default // JSPython = true; // Raise create event handler if (this.Create!=null) { this.Create(this, new EventArgs()); } }
public LuaMako(SpiderView host) { this.host = host; // Initialize runtime engine. For now we use JavaScriptEngine RuntimeMachine = host.Scripting; // Set JSPython to try as default // JSPython = true; // Raise create event handler if (this.Create != null) { this.Create(this, new EventArgs()); } }
public LuaInterpreter(SpiderView host) { this.host = host; this.lua = new LuaInterface.Lua(); this.lua.DoString(Properties.Resources.helperlua); // Add helper methods }
public Liquid(SpiderView host) { this.Host = host; }