VCMP SDK in YAML format

EK.IceFlake

  • Hero Member
  • "We are the champions my fellahs" - Sufyan/VK.SuFy
  • Posts: 1,761
VCMP SDK in YAML format
«  »Last edited
This is the VCMP SDK in yaml format made so that you can parse it easily in order to generate bindings to it.

https://pastebin.com/Z350QSYp

Some names might be changed, but the order remains the same so they should still work.

-- Update: Removed redundant const ... notation.
-- Update: Made return types easier to parse.
-- Update: Standardize enumerator formats.
-- Update: Make constant-size lists easier to parse.
-- Update: Make dynamic-size lists easier to parse.
-- Update: Made strings easier to parse. Fixed length of string in struct PluginInfo.
-- Update: Made format strings easier to parse. Made PluginFuncs and PluginCalls separate from Structs.

vitogta

  • Jr. Member
  • Posts: 59
Re: VCMP SDK in YAML format
« Reply #1,  »
Quote
VcmpPlayerState:
    -   vcmpPlayerStateNone: 0
    -   vcmpPlayerStateNormal: 1
    -   vcmpPlayerStateAim: 2
    -   vcmpPlayerStateDriver: 3
    -   vcmpPlayerStatePassenger: 4
    -   vcmpPlayerStateEnterDriver: 5
    -   vcmpPlayerStateEnterPassenger: 6
    -   vcmpPlayerStateExit: 7
    -   vcmpPlayerStateUnspawned: 8
is it someone know such list for player.Action?

Athanatos

  • Hero Member
  • Working on maybe the best VC:MP server ever
  • Posts: 639
Re: VCMP SDK in YAML format
« Reply #2,  »
Code: [Select]
#   Copyright © 2018  Fleka
No shit. You just modified the SDK. You don't deserve any copyright stuff.

EK.IceFlake

  • Hero Member
  • "We are the champions my fellahs" - Sufyan/VK.SuFy
  • Posts: 1,761
Re: VCMP SDK in YAML format
« Reply #3,  »
Quote from Athanatos on July 7th, 07:50 AM
Code: [Select]
#   Copyright © 2018  Fleka
No shit. You just modified the SDK. You don't deserve any copyright stuff.
?

When you modify something, you gain copyright over what you've created. It also inherits the original copyright which is why there's the apache license notice included in the original header file.

It's the MIT license anyways, which means you can do whatever you want with it.

Stormeus

  • VC:MP Developer
  • oh god how did i get here im not good w computer
  • Posts: 1,046
Re: VCMP SDK in YAML format
« Reply #4,  »
Quote from EK.IceFlake on July 7th, 08:28 AM
When you modify something, you gain copyright over what you've created. It also inherits the original copyright which is why there's the apache license notice included in the original header file.
That's not really how copyright works, but it doesn't really matter since this is compatible with the Apache License we use for the SDK anyway.

EK.IceFlake

  • Hero Member
  • "We are the champions my fellahs" - Sufyan/VK.SuFy
  • Posts: 1,761
Re: VCMP SDK in YAML format
« Reply #5,  »
Quote from Stormeus on July 7th, 06:25 PM
Quote from EK.IceFlake on July 7th, 08:28 AM
When you modify something, you gain copyright over what you've created. It also inherits the original copyright which is why there's the apache license notice included in the original header file.
That's not really how copyright works, but it doesn't really matter since this is compatible with the Apache License we use for the SDK anyway.
If you extend some GPL'd software with your own code, your code is under your copyright. You can even put it under a proprietary license. However, you aren't allowed to link them together in that case, since they're incompatible. But like you said, in this case, the MIT license is compatible with the Apache license. So, in this case, it's perfectly alright for this code to have both licenses + copyright notices.