Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change the AdminObjectFactory to LifestoneObjectFactory, add PortalOb… #145

Merged
merged 2 commits into from Mar 20, 2017
Merged

Conversation

ghost
Copy link

@ghost ghost commented Mar 18, 2017

…jectFactory, add LifestoneType and PortalType Enums, remove unneeded GameMessageCreateLifestone, and remove the leftover DebugAssert command in ObjectGuid

…jectFactory, add LifestoneType and PortalType Enums, remove unneeded GameMessageCreateLifestone, and remove the leftover DebugAssert command in ObjectGuid
Copy link
Contributor

@Mogwai-TheFurry Mogwai-TheFurry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Going to leave this comment because I know you'll get it in an email... I like the changes, but I want to caution us against rabbit-holing down a factory-per-object-type paradigm. This is helpful stuff to get people involved and aware of how to do things properly, but down the road this will all go through a generic static object factory that doesn't care about what type it is - it will eventually load all the WCId data from a database table and populate the object automatically for us.

Otherwise, looks great and takes a step in the right direction towards more generalized object factory patterns.

[CommandHandler("createportal", AccessLevel.Developer, CommandHandlerFlag.RequiresWorld)]
public static void CreatePortal(Session session, params string[] parameters)
{
LandblockManager.AddObject(PortalObjectFactory.CreatePortal(1234, session.Player.Position.InFrontOf(3.0f),"Test Portal",PortalType.Purple));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whitespace consistency - spaces after commas. not going to block a PR over it, but want you to know. stylecop rules coming down the pipe will enforce this in the future.

@Mogwai-TheFurry Mogwai-TheFurry merged commit c021370 into ACEmulator:master Mar 20, 2017
@ghost ghost deleted the Object-Factories-Changes-Additions branch October 18, 2017 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants