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

ALTV-545 add name to virtual entity group #112

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ICore.h
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ namespace alt
virtual alt::Size GetMValueArgsSize(MValueArgs mValue) = 0;

virtual IVirtualEntity* CreateVirtualEntity(IVirtualEntityGroup* group, Position pos, uint32_t streamingDistance, std::unordered_map<std::string, MValue> data) = 0;
virtual IVirtualEntityGroup* CreateVirtualEntityGroup(uint32_t maxEntitiesInStream) = 0;
virtual IVirtualEntityGroup* CreateVirtualEntityGroup(uint32_t maxEntitiesInStream, const std::string& name = "") = 0;

virtual IColShape* CreateColShapeCylinder(Position pos, float radius, float height) = 0;
virtual IColShape* CreateColShapeSphere(Position pos, float radius) = 0;
Expand Down
1 change: 1 addition & 0 deletions script-objects/IVirtualEntityGroup.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ namespace alt
virtual ~IVirtualEntityGroup() = default;

virtual uint32_t GetMaxEntitiesInStream() const = 0;
virtual std::string GetName() const = 0;
};
} // namespace alt
5 changes: 5 additions & 0 deletions types/Metric.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ namespace alt
++value;
}

void Dec()
{
--value;
}

void Begin()
{
lastBegin = Time();
Expand Down