brujah236
23rd Dec 2011, 06:48 PM
:help: Hey everybody!
I'm in the process of creating two completely new object classes for kitchen appliances. One for a counter top cooktop and the second for a double unit oven.
This is my code so far for the cooktop: (using ALL "usings")
namespace Sims3.Gameplay.Objects.Appliances.Mimics.cooktop
{
public sealed class Cooktop : StoveCeleb, ICounterSurfaceAppliance
{
[Persistable]
public interface ICounterAppliance : INotHauntable, ICookingAppliance, IGameObject, IScriptObject, IScriptLogic, IHasScriptProxy, IObjectUI, IExportableContent, IStove
{
Counter Counter
{
get;
set;
}
}
static StoveCeleb()
{
sStoveTopUseTestDelegate = new GlobalFunctions.FindObjectValidityTest(Stove.TestUseStoveTop);
sInOvenUseTestDelegate = new GlobalFunctions.FindObjectValidityTest(Stove.TestUseOven);
}
static Cooktop() : base()
{
sInOvenUseTestDelegate = new GlobalFunctions.FindObjectValidityTest(Cooktop.TestUseOven);
}
THIS IS WHERE I NEED ASSISTANCE: METHOD "static StoveCeleb()" REQUIRES RETURN TYPE
}
}
:!: Thank you to Inge for giving me the base code! :!:
I'm in the process of creating two completely new object classes for kitchen appliances. One for a counter top cooktop and the second for a double unit oven.
This is my code so far for the cooktop: (using ALL "usings")
namespace Sims3.Gameplay.Objects.Appliances.Mimics.cooktop
{
public sealed class Cooktop : StoveCeleb, ICounterSurfaceAppliance
{
[Persistable]
public interface ICounterAppliance : INotHauntable, ICookingAppliance, IGameObject, IScriptObject, IScriptLogic, IHasScriptProxy, IObjectUI, IExportableContent, IStove
{
Counter Counter
{
get;
set;
}
}
static StoveCeleb()
{
sStoveTopUseTestDelegate = new GlobalFunctions.FindObjectValidityTest(Stove.TestUseStoveTop);
sInOvenUseTestDelegate = new GlobalFunctions.FindObjectValidityTest(Stove.TestUseOven);
}
static Cooktop() : base()
{
sInOvenUseTestDelegate = new GlobalFunctions.FindObjectValidityTest(Cooktop.TestUseOven);
}
THIS IS WHERE I NEED ASSISTANCE: METHOD "static StoveCeleb()" REQUIRES RETURN TYPE
}
}
:!: Thank you to Inge for giving me the base code! :!: